<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'diary.jsp' starting page</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	
	<script type="text/javascript" src="<%=basePath%>/js/jquery-3.2.1.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/updateuser.js"></script>
  </head>
  
  <body>
    
    
    
    <form class="form-horizontal"  method="post"  action="user/updateuserinfo" enctype="multipart/form-data" role="form">
    <div class="form-group">
    <center>
    <div class="col-sm-10">
      	<img src="" id="userImage" class="img-circle" style="width:100px;height: 100px;">
      	<input type="file"  contentEditable="false" name="file">
    </div>
    </center>
  </div>
  <div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">phone</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="userPhone"  name="userPhone" placeholder="请输入手机号" >
    </div>
  </div>
  <div class="form-group">
    <label for="lastname" class="col-sm-2 control-label">Email</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="userEmail" placeholder="请输入邮箱" nValidate="{required:true,email:true}">
    </div>
  </div>
    <div class="form-group">
    <label for="lastname" class="col-sm-2 control-label">adress</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="userAddress" placeholder="请输入地址">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">修改</button>
    </div>
  </div>
  
</form>
        
    
  </body>
</html>
